package com.yisu.auction.ewf.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class GoodsInfo implements Serializable {

    /**
     * 商品售卖类型
     */
    public enum StatusEnum {
        NO_SNATCH_TREASURE(1, "未开始夺宝"),
        SNATCH_TREASURE_ING(2, "夺宝中");
        public int code;
        public String name;

        StatusEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String getEnumNameByCode(int code) {
            for (StatusEnum item : StatusEnum.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }


    /**
     * 商品售卖类型
     */
    public enum SalesTypeEnum {
        SNATCH_TREASURE(1, "夺宝类"),
        INTEGRAL_EXCHANGE(2, "积分兑换");
        public int code;
        public String name;

        SalesTypeEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String getEnumNameByCode(int code) {
            for (SalesTypeEnum item : SalesTypeEnum.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }



    private Long id;

    private Long createUserId;

    private Date createDate;

    private Long updateUserId;

    private Date updateDate;

    private Boolean isValid;

    private Long goodsTypeId;

    private String name;

    private String images;

    private String salesNo;

    private Integer salesType;

    private Integer stock;

    private Integer term;

    private Integer status;

    private BigDecimal price;

    private Byte isTen;

    private Integer isRechargeableCard;

    private BigDecimal waterLevel;

    private BigDecimal accumulativeBuyMoney;

    private Integer sort;

    private String detail;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(Boolean isValid) {
        this.isValid = isValid;
    }

    public Long getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(Long goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getSalesNo() {
        return salesNo;
    }

    public void setSalesNo(String salesNo) {
        this.salesNo = salesNo;
    }

    public Integer getSalesType() {
        return salesType;
    }

    public void setSalesType(Integer salesType) {
        this.salesType = salesType;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getTerm() {
        return term;
    }

    public void setTerm(Integer term) {
        this.term = term;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Byte getIsTen() {
        return isTen;
    }

    public void setIsTen(Byte isTen) {
        this.isTen = isTen;
    }

    public Integer getIsRechargeableCard() {
        return isRechargeableCard;
    }

    public void setIsRechargeableCard(Integer isRechargeableCard) {
        this.isRechargeableCard = isRechargeableCard;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public BigDecimal getWaterLevel() {
        return waterLevel;
    }

    public void setWaterLevel(BigDecimal waterLevel) {
        this.waterLevel = waterLevel;
    }

    public BigDecimal getAccumulativeBuyMoney() {
        return accumulativeBuyMoney;
    }

    public void setAccumulativeBuyMoney(BigDecimal accumulativeBuyMoney) {
        this.accumulativeBuyMoney = accumulativeBuyMoney;
    }
}